import { keyBy } from "lodash";

const ObjectsUtils = () => {

}


ObjectsUtils.containKey = (obj, key) => {
    if (!obj || !keyBy) {
        return false;
    }
    return Object.keys(obj).indexOf(key) >= 0;
}

ObjectsUtils.copyProperties = (obj1, obj2) => {
    for (var i in obj1) {
        obj2[i] = obj1[i];
    }
}

export default ObjectsUtils;